package com.goods.business.converter;

import com.goods.common.model.business.ProductCategoryTreeNode;
import com.goods.common.model.business.Supplier;
import com.goods.common.vo.business.ProductCategoryTreeNodeVO;
import com.goods.common.vo.business.SupplierVO;
import org.springframework.beans.BeanUtils;

/**
 * @Author: 赵勇镔
 * @Time: 2021/6/8 13:57
 * @Description: 转VO
 */
public class SupplierConverter {

    public static SupplierVO converterSupplierVO (Supplier supplier){
        SupplierVO supplierVO = new SupplierVO();
        BeanUtils.copyProperties(supplier,supplierVO);
        return supplierVO;
    }

    public static Supplier converterSupplier (SupplierVO supplierVO){
        Supplier supplier = new Supplier();
        BeanUtils.copyProperties(supplierVO,supplier);
        return supplier;
    }

}
